<?php
namespace Home\Controller;
use Think\Controller;
class JfshopController extends Controller {
    public function cj(){
		
		
		$this->display();
	}

	public function jfsc(){
		$goods=D('Admin/Goods');
  	$count = $goods->count();
        $Page       = new \Think\Page($count,8);//继承
        $show       = $Page->show();//展示
        $list = $goods->limit($Page->firstRow.','.$Page->listRows)->select();
        $goodslist=$goods->select();
       
        $this->assign('count',$count);
        $this->assign('page',$show);
		$this->assign('list',$goodslist);
		
		$this->display();
	}
}